package ooday04.homework;

//Chick类：继承Animal，重写eat()、layEggs()
public class Chick extends Animal {
    Chick() {
    }
    Chick(String name,int age,String color){
        super(name ,color,age);
    }

    void eat(){
        System.out.println("我叫"+name+"今年"+age+"岁了"+"我是"+color+"色的,喜欢吃米");
    }
    void layEggs(){
       System.out.println("我叫"+name+"可以下蛋");
    }
}
